<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/6/19
  Time: 11:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page import="qin.com.*" %>
<%@ page import="java.util.List" %>
<%@ page import="javafx.scene.shape.LineTo" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    List<Users> list = UsersDao.getAllData();
%>
    <a href="insertusers.jsp">添加用户</a>
    <table border="1" width="100%">
        <tr>
            <td>id</td>
            <td>name</td>
            <td>pass</td>
            <td>操作</td>
        </tr>
        <%
            for(int i=0;i<list.size();i++){
                %>
        <tr>
            <td><%=list.get(i).getId()%></td>
            <td><%=list.get(i).getName()%></td>
            <td><%=list.get(i).getPass()%></td>
            <td>
                <a href="updateusers.jsp?id=<%=list.get(i).getId()%>">更新用户</a>
                <a href="users?id=<%=list.get(i).getId()%>">删除用户</a>
            </td>
        </tr>
        <%
            }
        %>

    </table>
</body>
</html>
